export const modelSchema = [
  {
    label: '主键',
    prop: 'id',
    showInTable: false,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '档案编号',
    prop: 'descriptionNo',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
    tableProps: {
      fixed: true,
    }
  },
  {
    label: '案卷号',
    prop: 'fileCode',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
    tableProps: {
      fixed: true,
    }
  },
  {
    label: '档案状态',
    prop: 'statusName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '档案类别',
    prop: 'folderId',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'AmFolderTreeSelector',
    componentProps: {},
  },
  {
    label: '档案类别',
    prop: 'folderName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '提名',
    prop: 'title',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '归档时间',
    prop: 'archiveTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    format: (text) => this.parseTime(text, '{y}-{m}-{d}'),
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 120,
    }
  },
  {
    label: '历史时期',
    prop: 'historicalPeriodName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '载体类型',
    prop: 'carrierTypeName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '文种',
    prop: 'recordTypeName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '数量',
    prop: 'number',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '单位',
    prop: 'unitName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '规格',
    prop: 'specName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '页数',
    prop: 'paginalNum',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '档案级别',
    prop: 'groupId',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'AmGroupSelector',
    componentProps: {},
  },
  {
    label: '档案级别',
    prop: 'groupName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '主题词',
    prop: 'keyword',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '备注',
    prop: 'notes',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '档案柜',
    prop: 'cabinetId',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'AmCabinetTreeSelector',
    componentProps: {},
  },
  {
    label: '档案柜',
    prop: 'cabinetName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '全宗',
    prop: 'fondCode',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '保存期限',
    prop: 'saveDate',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '保存期限',
    prop: 'saveDateName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '发文字号',
    prop: 'dispatchNumber',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '立卷时间',
    prop: 'filingTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 120,
    }
  },
  {
    label: '立卷人',
    prop: 'filingPerson',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '案卷立案开始时间',
    prop: 'startTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 200,
    }
  },
  {
    label: '案卷立案结束时间',
    prop: 'endTime',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'dateSelect',
    componentProps: {},
    tableProps: {
      width: 200,
    }
  },
  {
    label: '扩展索引',
    prop: 'extendedIndex',
    showInTable: true,
    showInQuery: true,
    showInForm: true,
    component: 'input',
    componentProps: {},
  },
  {
    label: '借阅状态',
    prop: 'brStatus',
    showInTable: false,
    showInQuery: true,
    showInForm: true,
    component: 'select',
    componentProps: {
      options: [
        {
          label: '正常',
          value: '0'
        },
        {
          label: '被借出',
          value: '1'
        },
      ]
    },
  },
  {
    label: '借阅状态',
    prop: 'brStatusName',
    showInTable: true,
    showInQuery: false,
    showInForm: false,
    component: 'input',
    componentProps: {},
  },
  {
    label: '角色',
    prop: 'roles',
    showInTable: false,
    showInQuery: true,
    showInForm: false,
    component: 'RoleSelector',
    componentProps: {},
  },
]
